package com.village.friend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 活动报名表
 * </p>
 *
 * @author yl
 * @since 2021-11-13
 */
@ApiModel(value="ActivityJoin对象", description="活动报名表")
public class ActivityJoin implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "活动ID")
    private Integer activityId;

    @ApiModelProperty(value = "发起人用户ID")
    private Integer userId;

    @ApiModelProperty(value = "参与人用户ID")
    private Integer userIdJoin;

    @ApiModelProperty(value = "是1否0报名")
    @TableField("is_join")
    private Boolean join;

    @ApiModelProperty(value = "是1否0同意")
    @TableField("is_agree")
    private Boolean agree;

    @ApiModelProperty(value = "建立时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUserIdJoin() {
        return userIdJoin;
    }

    public void setUserIdJoin(Integer userIdJoin) {
        this.userIdJoin = userIdJoin;
    }

    public Boolean getJoin() {
        return join;
    }

    public void setJoin(Boolean join) {
        this.join = join;
    }

    public Boolean getAgree() {
        return agree;
    }

    public void setAgree(Boolean agree) {
        this.agree = agree;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ActivityJoin{" +
        "id=" + id +
        ", activityId=" + activityId +
        ", userId=" + userId +
        ", userIdJoin=" + userIdJoin +
        ", join=" + join +
        ", agree=" + agree +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
